//
//  Factory.h
//  HelloWorld
//
//  Created by Kevin Tang on 4/12/14.
//  Copyright (c) 2014年 Kevin Tang. All rights reserved.
//

#ifndef __HelloWorld__Factory__
#define __HelloWorld__Factory__


class Product{//产品
public:
    virtual ~Product()=0;
protected:
    Product();
private:
    
};

class ConcreteProduct:public Product{//具体产品
public:
    ~ConcreteProduct();
    ConcreteProduct();
protected:
    
private:
};


class Factory{//抽象工厂
public:
    virtual  ~Factory()=0;
    virtual Product* CreateProduct()=0;
protected:
    Factory();
private:
    
};

class ConcreteFactory:public Factory{//具体工厂
public:
    ~ConcreteFactory();
    ConcreteFactory();
    Product* CreateProduct();
protected:
private:
    

};



#endif /* defined(__HelloWorld__Factory__) */
